import service from "@/utils/request"

export const get_bind_account_list = () => {
  return service.get("account/get_auth_account_list")
}


export const get_bind_account_detail = (params) => {
  return service.get("setting_detail/get_bind_account_detail", {params})
}

export const setting_account_msg = (data) => {
  return service.post("setting/setting_account_msg", data)
}

export const setting_account_status = (data) => {
  return service.post("setting/setting_account_status", data)
}

export const get_keyword_auto_reply_robot_list = (params) => {
  return service.get("robot/get_keyword_auto_reply_robot_list", {params})
}


export const get_bind_robot_detail = (params) => {
  return service.get("robot/get_keyword_auto_reply_robot_detail", {params})
}


export const add_keyword_auto_reply_robot = (data) => {
  return service.post("robot/add_keyword_auto_reply_robot", data)
}

export const set_keyword_robot_use_status = (data) => {
  return service.post("robot/set_keyword_robot_use_status", data)
}

export const update_keyword_auto_reply_robot = (data) => {
  return service.put("robot/update_keyword_auto_reply_robot", data)
}

export const setting_reply_robot = (data) => {
  return service.post("setting/setting_reply_robot", data)
}

export const setting_reply_robot_status = (data) => {
  return service.post("robot/set_keyword_robot_use_status", data)
}

export const del_reply_robot = (params) => {
  return service.delete("robot/delete_keyword_auto_reply_robot", {params})
}

// 智能回复
export const get_robot_reply_category = () => {
  return service.get("setting_detail/get_robot_reply_category")
}

export const get_auto_reply_strategy_list = (params) => {
  return service.get("robot/get_auto_reply_strategy_list", {params})
}

export const get_reply_category_question_list = (params) => {
  return service.get("robot/get_auto_reply_content_list", {params})
}

export const update_auto_reply_strategy = (data) => {
  return service.put("robot/update_auto_reply_strategy", data)
}

export const add_auto_reply_strategy = (data) => {
  return service.post("robot/add_auto_reply_strategy", data)
}
export const setting_robot_reply_answer = (data) => {
  return service.post("setting/setting_robot_reply_answer", data)
}


export const set_content_use_status = (data) => {
  return service.post("robot/set_content_use_status", data)
}


export const delete_auto_reply_content = (params) => {
  return service.delete("robot/delete_auto_reply_content", {params})
}


export const add_auto_reply_content = (data) => {
  return service.post("robot/add_auto_reply_content", data)
}

export const update_auto_reply_content = (data) => {
  return service.put("robot/update_auto_reply_content", data)
}

export const authInfo = (data) => {
  return service.post("douyin/upload/authInfo", data)
}
